package jacksondatabind;

import java.util.Date;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class DataMapperTest {
	public static void main(String[] args) {
		ObjectMapper obj = new ObjectMapper();
		try {
			Date d = new Date();
			System.out.println(d.getTime());
			byte[] b = obj.writeValueAsBytes("aa");
			System.out.println(new String(b));
			System.out.println("aa");
		} catch (JsonProcessingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
